package com.chb.thread;

import com.chb.fallback.backFactory.FirstServiceBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @description:  url = "${sparrow.routing.first-service}", fallback = FirstServiceBack.class
 * @author: chb
 * @create: 2022-05-24 18:31
 **/
@FeignClient(value = "first-service", fallbackFactory = FirstServiceBackFactory.class)
public interface FirstService {
    @GetMapping("/hello")
    String he();
}
